﻿@model DiscussProject.Models.Article

@{
    ViewBag.Title = "Create2";
    Layout = "~/Views/Shared/_ArticleLayout.cshtml";
}

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true, "", new { @class = "text-danger" })

    <div class="layui-container fly-marginTop">
        <div class="fly-panel" pad20 style="padding-top: 5px;">
            <!--<div class="fly-none">没有权限</div>-->
            <div class="layui-form layui-form-pane">
                <div class="layui-tab layui-tab-brief" lay-filter="user">
                    <ul class="layui-tab-title">
                        <li class="layui-this">发表新帖<!-- 编辑帖子 --></li>
                    </ul>
                    <div class="layui-form layui-tab-content" id="LAY_ucm" style="padding: 20px 0;">
                        <div class="layui-tab-item layui-show">
                            <form action="" method="post">
                                <div class="layui-row layui-col-space15 layui-form-item">
                                    <div class="layui-col-md3">
                                        <label class="layui-form-label">所在专栏</label>

                                        <div class="layui-unselect layui-form-select">
                                            <div class="layui-input-block">
                                                @*@Html.DropDownList("Category",(SelectList)ViewBag.aaa);*@
                                                @Html.DropDownListFor(model => model.Category, ViewBag.select as SelectList, new { @class = "form-control", @name = "class" })
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-col-md9">
                                        <label for="L_title" class="layui-form-label">标题</label>
                                        

                                        <div class="layui-input-block">
                                            @Html.EditorFor(model => model.Title, new { htmlAttributes = new { @type = "text", @class = "layui-input", @id = "L_title", @name = "title", @autocomplete = "off" } })
                                            @Html.ValidationMessageFor(model => model.Title, "", new { @class = "text-danger" })
                                            <!-- <input type="hidden" name="id" value="{{d.edit.id}}"> -->
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item layui-form-text">
                                    <div class="layui-input-block">
                                        
                                        @*<textarea id="L_content" name="content" required lay-verify="required" placeholder="详细描述" class="layui-textarea fly-editor" style="height: 260px;"></textarea>*@
                                        @*@Html.TextArea("content","", new { htmlAttributes = new { @type = "textarea", @class = "layui-textarea fly-editor", @style = "height: 260px;", @id = "L_content", @name = "content", @placeholder = "详细描述" } })*@
                                        <textarea id="L_content" name="content" required lay-verify="required" placeholder="详细描述" class="layui-textarea fly-editor" style="height: 260px;"></textarea>
                                        @Html.ValidationMessageFor(model => model.Content, "", new { @class = "text-danger" })
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label for="L_vercode" class="layui-form-label">人类验证</label>
                                    <div class="layui-input-inline">
                                        <input type="text" id="L_vercode" name="vercode" required lay-verify="required" placeholder="请回答后面的问题" autocomplete="off" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid">
                                        <span style="color: #c00;">1+1=?</span>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <input type="submit" value="立即发布" class="layui-btn" lay-filter="*" />
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
}
<script src="~/Scripts/layui.js"></script>
<script>

    layui.config({
        version: "3.0.0"
        , base: "/Scripts/mods/"
    }).extend({
        fly: 'index'
    }).use('fly');
</script>

